import globalConst from '@/utils/constant';
import Vue from 'vue';
import {
  Container,
  Aside,
  Header,
  Main,
  Col,
  Button,
  Tabs,
  TabPane,
  Divider,
  Checkbox,
  Menu,
  MenuItem,
  Dialog,
  Form,
  FormItem,
  Input,
  Link,
  Tooltip,
  Loading,
  MessageBox,
  Message,
} from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
import '@/style/construct.scss';
import App from './App.vue';

Object.defineProperty(Vue.prototype, '$globalConst', { value: globalConst });

Vue.use(Container)
  .use(Aside)
  .use(Header)
  .use(Main)
  .use(Col)
  .use(Button)
  .use(Tabs)
  .use(TabPane)
  .use(Divider)
  .use(Checkbox)
  .use(Menu)
  .use(MenuItem)
  .use(Dialog)
  .use(Form)
  .use(FormItem)
  .use(Input)
  .use(Tooltip)
  .use(Link)
  .use(Loading.directive);
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$message = Message;

Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
}).$mount('#app');
